package com.java.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.java.pojo.OneMenu;

public interface LoginMapper {
	/**
	 * 系统用户登录
	 * @param username
	 * @param pwd
	 * @return
	 */
	@Select("SELECT COUNT(*) FROM `system_user` where username=#{0} and pwd = #{1} and use_status=1")
	public int login(String username, String pwd);

	/**
	 *  查询用户权限信息
	 * @param username
	 * @return
	 */
	public List<OneMenu> getAuthorityByUsername(String username);



}
